package com.eclipse.e0112_io.序列化和反序列化;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;

public class Test2 {
	public static void main(String[] args) throws FileNotFoundException, IOException, ClassNotFoundException {
		//读
		ObjectInputStream ois = new ObjectInputStream(new FileInputStream("/Users/liuzhuangzhuang/Desktop/io/xuliehua.data"));
		Student s2 = (Student) ois.readObject();
		s2.shuchu();
		System.out.println(s2.name);
	}
		
}
